!
function(e) {
    var t = function() {
        return this.option = {
            showMessagePops: !0
        },
        this.quickMenu = e("header .quick-menu"),
        this.config = window.HeaderHelperConfig || {},
        this.init(),
        this
    };
    t.prototype.init = function() {
        var e = this;
        return LT.Event.queue("login",
        function() {
            e.refresh()
        }),
        this.refresh(),
        this
    },
    t.prototype.options = function() {
        var e = this;
        return 1 === arguments.length ? e.option[arguments[0]] : (2 === arguments.length && (e.option[arguments[0]] = arguments[1]), this)
    },
    t.prototype.refresh = function() {
        var e = location.hostname.split(".").slice(0, 1)[0];
        switch (e) {
        case "clt":
        case "ltcom":
            LT.Cookie.get("hcomp_id") ? this.setLoginedMenuCLT() : this.setUnloginMenuCLT();
            break;
        default:
            LT.User.isLogin ? this.setLoginedMenu() : this.setUnloginMenu()
        }
        return this
    },
    t.prototype.setUnloginMenu = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-unlogined").appendTo(t.quickMenu.empty());
        return NodeTpl.get("http://www.pc.lietou-static.com/revs/v1/tpls/header/quick_menu_d80bc3da.js", {
            pageType: t.config.pageType
        },
        function(e) {
            n.append(e)
        }),
        t
    },
    t.prototype.setLoginedMenu = function() {
        switch (LT.User.user_kind) {
        case "0":
            this.setLoginedMenuC();
            break;
        case "2":
            this.setLoginedMenuH();
            break;
        default:
            this.setLoginedMenuP()
        }
        return this
    },
    t.prototype.setLoginedMenuC = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-logined-c").appendTo(t.quickMenu.empty());
        return NodeTpl.get("http://c.pc.lietou-static.com/revs/v1/tpls/header/quick_menu_226d6179.js",
        function(e) {
            n.append(e)
        }),
        t
    },
    t.prototype.setLoginedMenuH = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-logined-h").appendTo(t.quickMenu.empty());
        return NodeTpl.get("http://h.pc.lietou-static.com/revs/v1/tpls/header/quick_menu_b52ae98f.js",
        function(e) {
            n.append(e)
        }),
        t
    },
    t.prototype.setUnloginMenuCLT = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-unlogined").appendTo(t.quickMenu.empty());
        return NodeTpl.get("http://clt.pc.lietou-static.com/revs/v1/tpls/header/quick_menu_unlogined_f81ae183.js",
        function(e) {
            n.append(e)
        }),
        e("header .notebook").remove(),
        t
    },
    t.prototype.setLoginedMenuCLT = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-logined-clt").appendTo(t.quickMenu.empty()),
        i = 1 == LT.Cookie.get("is_root_hcomp"),
        o = LT.Cookie.get("hcomp_name");
        return NodeTpl.get("http://clt.pc.lietou-static.com/revs/v1/tpls/header/quick_menu_4498b575.js", {
            isroot: i
        },
        function(e) {
            n.append(e)
        }),
        o ? (e("header nav").show(), e("header .title").hide()) : (e("header nav").hide(), e("header .title").show()),
        t
    },
    t.prototype.setLoginedMenuP = function() {
        var t = this,
        n = e("<div />").addClass("quick-menu-logined-p").appendTo(t.quickMenu.empty());
        return NodeTpl.get("http://s.lietou-static.com/revs/tpls/p/beta2/header/quick_menu_8ec76441.js",
        function(e) {
            n.append(e)
        }),
        t
    },
    t.prototype.navbar = function(t) {
        return e("header nav ul li").each(function() {
            e(this).attr("data-name") === t && e(this).addClass("active")
        }),
        this
    },
    t.prototype.dynmode = function() {
        return LT.User.isLogin && e("header nav").hide(),
        this
    },
    window.HeaderHelper = new t
} (jQuery);